package com.qiaofang.applet.service.other.service;


import com.qiaofang.applet.common.base.BaseService;
import com.qiaofang.applet.service.member.service.dto.MemberBrowseQueryDto;
import com.qiaofang.applet.service.other.domain.Topic;
import com.qiaofang.applet.service.other.service.dto.TopicDetailDto;
import com.qiaofang.applet.service.other.service.dto.TopicQueryDto;
import com.qiaofang.applet.service.property.service.dto.CityQueryDto;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Set;

/**
 * @description
 * @author luojuan
 * @date 2020/9/12 10:42
 **/
public interface TopicService extends BaseService<Topic, String> {

    TopicDetailDto getById(String topicId);

    Topic getDomainById(String topicId);

    /**
     * 根据参数分页查询对应数据
     * @param queryDto
     * @param pageable
     * @return
     */
    Page<Topic> findByParams(TopicQueryDto queryDto, Pageable pageable);

    List<Topic> getIndexTopic(CityQueryDto queryDto);

    /**
     * 保存主题
     * @param topic
     */
    void saveTopic(Topic topic);
}
